<?php
function getPostPrincipal($id)
	{
		$stringConsulta = "SELECT P.titulo,P.idCategoria,C.nombre FROM posts P,categorias C WHERE C.id = P.idCategoria AND P.id = :id";
		$consulta = consulta($stringConsulta,Array(':id'=>$id));
		$fetch = $consulta->fetch();
		return $fetch;
	}
?>